package com.blb.friendsO.dao;

import com.blb.friendsO.entity.TComment;
import com.blb.friendsO.entity.TFriends;
import com.blb.friendsO.entity.TGood;

import java.util.List;

import com.blb.friendsO.entity.TFriends;

import java.sql.SQLException;

public interface IFriendsDao {

    //获取所有动态
    List<TFriends> getFriends() throws Exception;

    //获得所有点赞
    List<TGood> getGood() throws Exception;

    //获得所有评论
    List<TComment> getComment() throws Exception;

    //发表添加
    void add(TFriends friends) throws SQLException, ClassNotFoundException;

    //根据id删除动态
    void deleteById(int id) throws Exception;
    //添加点赞
    void addGood(int userId,int friendsID) throws SQLException, ClassNotFoundException;
    //判断点赞表是否有已经点赞
    int selectGood(int userId,int friendsID) throws SQLException, ClassNotFoundException;
    //取消点赞
    void deleteGood(int userId,int friendsID) throws SQLException, ClassNotFoundException;
}
